﻿@page "/Pies/Gauge5"
@using LiveChartsCore.SkiaSharpView.Blazor
@using ViewModelsSamples.Pies.Gauge5

<style>
	.sample-wrap {
		display: inline-block;
		width: 600px;
		height: 600px;
	}
</style>

<button class="btn btn-primary" @onclick="ViewModel.DoRandomChange">
	Update Value
</button>

<div class="sample-wrap">
	<PieChart
		Series="ViewModel.Series"
		InitialRotation="-90"
        MaxAngle="270"
        MinValue="0"
        MaxValue="100"
		LegendPosition="LiveChartsCore.Measure.LegendPosition.Bottom">
	</PieChart>
</div>

@code {
	public ViewModel ViewModel { get; set; } = new();
}
